package com.kayang.feishu.pojo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Map;

@Data
public class DeptModel {

    private String user_id_type;

    private String department_id_type;

    private String client_token;

    @Pattern(regexp = "^[a-zA-Z0-9][a-zA-Z0-9_\\-@.]{0,63}$", message = "最大64字符且只能字母或数字开头")
    private String department_id;

    @NotBlank(message = "name must be not null")
    private String name;


    /**
     *
     * */
    private Map i18n_name;


    private String parent_department_id;


    private String leader_user_id;

    private String order;

    private String[] unit_ids;

    private boolean create_group_chat;

    /**
     *
     * */
    private Map leaders;

    @Size(max = 5, message = "group_chat_employee_types 最多5个类型")
    private int [] group_chat_employee_types;


    private String[] department_hrbps;



}
